<div class="site-title">
    <fieldset>
        <legend><a>${title}</a></legend>
    </fieldset>
</div>
<div class="layui-row" style="margin-top: 32px">
    <div class="layui-form" action="">
        <input type="hidden" name="id" value="<#if isEdit>${vo.id?c}</#if>">
        <div class="layui-form-item">
            <label class="layui-form-label">日期</label>
            <div class="layui-input-inline">
                <input id="diary_date" type="text" name="date" required lay-verify="required" placeholder="请输入日期"
                       autocomplete="off" class="layui-input" value="<#if isEdit>${vo.date?string('yyyy-MM-dd')}</#if>">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">日记</label>
            <div class="layui-input-block">
                <textarea type="text" name="content" class="layui-input"><#if isEdit>${vo.content}</#if></textarea>
            </div>
        </div>
        <div class="layui-row">
            <div class="layui-input-block layui-col-md8">
                <button class="layui-btn" lay-submit lay-filter="diary_submit" id="diary_submit">提交</button>
            </div>
        </div>
    </div>
</div>